package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.dto.product.CategoryExcelDTO;
import com.atguigu.spzx.model.entity.product.Category;
import com.atguigu.spzx.model.vo.product.CategoryExcelVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author LT
 * @create 2024-03-15-21:32
 */
@Mapper
public interface CategoryMapper {


    List<Category> categoryByParentId(Long pid);

    int getCountId(Long id);

    Long selectCountCondition(CategoryExcelDTO categoryExcelDTO);


    void saveBatch(List<CategoryExcelDTO> list);

    List<CategoryExcelVo> selectAll();

    Category selectById(Long categoryId);

}
